package changeEmployeeTransaction.changeNameTransaction;

import addEmployeeTransaction.Employee;
import changeEmployeeTransaction.ChangeEmployeeTransaction;
import database.PayrollDatabase;

public class ChangeNameTransaction extends ChangeEmployeeTransaction {
	private String newName;

	public ChangeNameTransaction(int id, String newName,
			PayrollDatabase database) {
		super(id, database);
		this.newName = newName;
	}

	@Override
	protected void change(Employee e) {
		e.setName(newName);
	}
}
